import {
  GET_COUPONS,
  SET_COU_CUR_PAGE,
  SET_COU_EACH_PAGE,
  GET_ORDERS,
  SET_CUR_PAGE,
  SET_EACH_PAGE,
  GET_PRODUCT,
  GET_ADMINS,
  SET_ADM_CUR_PAGE,
  SET_ADM_EACH_PAGE,
  GET_ALL_NAVS,
  GET_USERS,
  SET_CUR_PAGE_USERS,
  SET_EACH_PAGE_USERS,
  GET_ALL_TABS,
  GET,
  SEARCH_PRODUCT,
  CHANGES_TABS,
  GET_TABS,
  GET_GOODS_TYPE,

} from "./types";
//createActions用来创建action函数返回一个对象{type:,payload:}
import { createActions } from "redux-actions";
// createActions会把所有的大写的方法都会解析成小驼峰命名的小写方法
export default createActions(
  GET_COUPONS,
  SET_COU_CUR_PAGE,
  SET_COU_EACH_PAGE,
  GET_ORDERS,
  SET_CUR_PAGE,
  SET_EACH_PAGE,
  GET_PRODUCT,
  GET_ADMINS,
  SET_ADM_CUR_PAGE,
  SET_ADM_EACH_PAGE,
  GET_ALL_NAVS,
  GET_USERS,
  SET_CUR_PAGE_USERS,
  SET_EACH_PAGE_USERS,
  GET_ALL_TABS,
  GET_ALL_NAVS,
  GET,
  SEARCH_PRODUCT,
  CHANGES_TABS,
  GET_TABS,
  GET_GOODS_TYPE
);
